package PTA.javabianchengjichu2;


import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Scanner;

public class ex16 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        BigDecimal a = new BigDecimal(sc.nextInt());
        BigDecimal b = new BigDecimal(sc.nextInt());
        System.out.println(a.add(b));
        System.out.println(a.subtract(b));
        System.out.println(a.multiply(b));
        System.out.println(a.divide(b));

    }
}
